#include<stdio.h>

extern int *sort(int *, int );

int main(void){
	int i, *b, a[] = {5, 4, 15, 14, 12};
	
	int len = sizeof(a)/sizeof(int);
	
	printf("Before sorting:\n");
	for(i=0; i<len; i++) printf("%d ", a[i]);
	printf("\n");	
	
	b = (int *)sort(a, len); /* R0, R1 */

	printf("After sorting by asm:\n");
	
	for(i=0; i<len; i++) printf("%d ", *(b+i));
	printf("\n");

	return 0;
}